const express = require('express')
const router = express.Router()

// 导入数据验证规则和数据验证的包
const expressJoi = require('@escook/express-joi')
const { login_schema } = require('../schema/schema')

// 导入路由处理函数
const UserHandler = require('../router_handler/user')
router.post('/login', expressJoi(login_schema.login_schema), UserHandler.login)


module.exports = router